<font color="green"><?php echo $resultadoCadastro; ?></font>
<?php
    if($erro["id"]){
     echo '<font color="red">'.$erro["id"].'</font><br/>';
}
?>
<br/><h2> Nova Turma </h2>
<form action="/admin/novaTurma" method="post">
    <table cellpadding="0" cellspacing="0" border="0" class="form_table">
        <tr>
            <td valign="middle" align="right">Selecione a Disciplina:
            </td>
            <td valign="middle" align="left">
                <select name="disciplina_id" class="inputgri">';
                    <?php
                    foreach ($disciplinas as $disciplina)
                    echo '<option value="'.$disciplina["id"].'">'.$disciplina["nome"].'</option>';
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td valign="middle" align="right">Selecione o Professor:
            </td>
            <td valign="middle" align="left">
                <select name="users_id" class="inputgri">';
                    <?php
                    foreach ($professores as $professor)
                    echo '<option value="'.$professor["id"].'">'.$professor["nome"].'</option>';
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td valign="middle" align="right">Código da Turma:</td>
            <td valign="middle" align="left">
                <input name="id" type="text" class="inputgri" />
            </td>
        </tr>
    </table>
    <p><input type="submit" class="button" value="Salvar" />
</form>
<form action="/admin/listarTurmas" method="post">
<input type="submit" class="button" value="Cancelar" />
</form>
<br/><br/>

